package fina2.dcs.fis;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

@Entity
@SuppressWarnings("serial")
@Table(name = "IN_BANK_BRANCHES")
public class BankBranch implements Serializable {
	private BigDecimal id;
	private BigDecimal bankRegionStrId;
	private BigDecimal nameStrId;
	private BigDecimal shortNameStrId;
	private BigDecimal addressStrId;
	private String commentStrId;
	private Date creationDate;
	private Date dateOfChange;
	private BigDecimal bankId;

	private String name;
	private String shortName;
	private String address;
	private String comment;
    private Region region;
    
	@Id
	@Column(name = "ID")
	public BigDecimal getId() {
		return id;
	}

	public void setId(BigDecimal id) {
		this.id = id;
	}

	@Column(name = "BANKREGIONSTRID")
	public BigDecimal getBankRegionStrId() {
		return bankRegionStrId;
	}

	public void setBankRegionStrId(BigDecimal bankRegionStrId) {
		this.bankRegionStrId = bankRegionStrId;
	}

	@Column(name = "NAMESTRID")
	public BigDecimal getNameStrId() {
		return nameStrId;
	}

	public void setNameStrId(BigDecimal nameStrId) {
		this.nameStrId = nameStrId;
	}

	@Column(name = "SHORTNAMESTRID")
	public BigDecimal getShortNameStrId() {
		return shortNameStrId;
	}

	public void setShortNameStrId(BigDecimal shortNameStrId) {
		this.shortNameStrId = shortNameStrId;
	}

	@Column(name = "ADDRESSSTRID")
	public BigDecimal getAddressStrId() {
		return addressStrId;
	}

	public void setAddressStrId(BigDecimal addressStrId) {
		this.addressStrId = addressStrId;
	}

	@Column(name = "COMMENTSSTRID")
	public String getCommentStrId() {
		return commentStrId;
	}

	public void setCommentStrId(String commentStrId) {
		this.commentStrId = commentStrId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATIONDATE")
	public Date getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DATEOFCHANGE")
	public Date getDateOfChange() {
		return dateOfChange;
	}

	public void setDateOfChange(Date dateOfChange) {
		this.dateOfChange = dateOfChange;
	}

	@Column(name = "BANKID")
	public BigDecimal getBankId() {
		return bankId;
	}

	public void setBankId(BigDecimal bankId) {
		this.bankId = bankId;
	}

	@Transient
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Transient
	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	@Transient
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Transient
	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	@Transient
	public Region getRegion() {
		return region;
	}

	public void setRegion(Region region) {
		this.region = region;
	}
    
	
}
